import request from '@/utils/request'

// 查询移库记录列表
export function listTransferRecord(query) {
  return request({
    url: '/pack/transfer/record/list',
    method: 'get',
    params: query
  })
}

// 查询移库记录详细
export function getTransferRecord(transferId) {
  return request({
    url: '/pack/transfer/record/' + transferId,
    method: 'get'
  })
}

// 新增移库记录(手动移库)
export function addTransferRecord(data) {
  return request({
    url: '/pack/transfer/record',
    method: 'post',
    data: data
  })
}

// 导出移库记录
export function exportTransferRecord(query) {
  return request({
    url: '/pack/transfer/record/export',
    method: 'post',
    params: query
  })
}

// 获取移库统计信息
export function getTransferStatistics(query) {
  return request({
    url: '/pack/transfer/record/statistics',
    method: 'get',
    params: query
  })
}

// 根据器具ID查询移库记录
export function getTransferRecordByContainerId(containerId) {
  return request({
    url: '/pack/transfer/record/container/' + containerId,
    method: 'get'
  })
}

// 根据项目ID查询移库记录
export function getTransferRecordByProjectId(projectId) {
  return request({
    url: '/pack/transfer/record/project/' + projectId,
    method: 'get'
  })
} 